ScrolledWindow: Optimise and clean up measure()
authorDaniel Boles <dboles@src.gnome.org>
Fri, 10 Mar 2017 20:09:20 +0000 (20:09 +0000)
committerDaniel Boles <dboles@src.gnome.org>
Wed, 10 May 2017 21:29:01 +0000 (22:29 +0100)
commit1a95c259d7b37f11668f60b276100e27e2ed3c18
treef7a269f45336b7b0cdc60c62a3af0cb606b725ef
parent546433a4b7f936dc30d71104f7e6ddae2e0d9b9d
ScrolledWindow: Optimise and clean up measure()

 • Only calculate the specified dimension – rather than measuring both &
   discarding the other (which will often be recalculated right after)
 • Only measure a given child scrollbar if it may be visible, not always
 • Move variables into narrowest scopes & otherwise improve readability

https://bugzilla.gnome.org/show_bug.cgi?id=778853
gtk/gtkscrolledwindow.c